package ch.pizzapp.kurier;

import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.UiThread;
import org.androidannotations.annotations.ViewById;

import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.GridView;
import android.widget.LinearLayout;
import android.widget.TextView;

@EFragment
public class BaseFragmnet extends Fragment {

	@ViewById(R.id.gridView)
	protected GridView gridView;
	@ViewById(R.id.login_status)
	protected LinearLayout mLoginStatusView;
	@ViewById(R.id.priceVale)
	TextView title;

	public BaseFragmnet() {
		super();
	}

	@UiThread
	void showProgress(final boolean show) {
		mLoginStatusView.setVisibility(show ? View.VISIBLE : View.GONE);
		gridView.setVisibility(show ? View.GONE : View.VISIBLE);
	}

}